﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Article.aspx.vb" Inherits="CW1.Article" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
        <ItemTemplate>
            <p align="center"><font size="large"><%# Eval("Title")%></font></p>
            <p><%#Eval("Body") %></p>
        </ItemTemplate>
    </asp:Repeater>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:WarriorConnection %>" 
        ProviderName="<%$ ConnectionStrings:WarriorConnection.ProviderName %>" 
        SelectCommand="SELECT [ID], [UserName], [Title], [Body] FROM [Article] WHERE (([UserName] = ?) AND ([Title] = ?))">
        <SelectParameters>
            <asp:QueryStringParameter Name="UserName" QueryStringField="UserName" 
                Type="String" />
            <asp:QueryStringParameter Name="Title" QueryStringField="Title" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
